import request from '@/utils/request'

// 查询发放订单列表
export function listPayslip(query) {
  return request({
    url: '/transfer/payslip/list',
    method: 'get',
    params: query
  })
}

// 查询发放订单详细
export function getPayslip(outBatchNo) {
  return request({
    url: '/transfer/payslip/' + outBatchNo,
    method: 'get'
  })
}

// 新增发放订单
export function addPayslip(data) {
  return request({
    url: '/transfer/payslip',
    method: 'post',
    data: data
  })
}

// 修改发放订单
export function updatePayslip(data) {
  return request({
    url: '/transfer/payslip',
    method: 'put',
    data: data
  })
}

// 删除发放订单
export function delPayslip(outBatchNo) {
  return request({
    url: '/transfer/payslip/' + outBatchNo,
    method: 'delete'
  })
}
export function saveToExamine(data) {
  return request({
    url: '/transfer/payslip/saveToExamine',
    method: 'post',
    data: data
  })
}
export function paymentPayslip(data) {
  return request({
    url: '/transfer/payslip/paymentPayslip',
    method: 'post',
    data: data
  })
}

// 查询发放订单详细
export function zhTrstyp(outBatchNo) {
  return request({
    url: '/transfer/payslip/zhTrstyp/' + outBatchNo,
    method: 'get'
  })
}

// 查询发放订单详细
export function getBusmod(outBatchNo) {
  return request({
    url: '/transfer/payslip/getBusmod/' + outBatchNo,
    method: 'get'
  })
}






